package com.example.plan.model.dto.arNavigation;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * AR导航标记表
 */
@Data
@ApiModel(value = "ArNavigationDTO",description = "AR导航标记增加/修改参数")
public class ArNavigationDTO implements Serializable {

    @ApiModelProperty(value = "导航标记ID，修改时必传")
    private Long nav_id;

    @NotNull(message = "关联订单ID不能为空")
    @ApiModelProperty(value = "关联订单ID,",required = true)
    private Long order_id;

    @NotNull(message = "关联无人机ID不能为空")
    @ApiModelProperty(value = "无人机ID",required = true)
    private Long drone_id;

    @NotNull(message = "虚拟标记类型不能为空")
    @ApiModelProperty(value = "虚拟标记类型",required = true)
    private Object marker_type;

    @NotNull(message = "标记位置经纬度不能为空")
    @ApiModelProperty(value = "标记位置经纬度",required = true)
    private Integer marker_coords;

    @NotBlank(message = "激活时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "激活时间",required = true)
    private Date activated_at;

}